package com.enzo.pcms.login.dao;

import com.enzo.pcms.common.exception.DaoException;
import com.enzo.pcms.login.model.User;

public interface UserDao {
	
	public Integer insert(User user) throws DaoException;
	
	public void update(User user)throws DaoException;
	
	public void activateUser(User user)throws DaoException;
	
	public User getUserByNameOrEmail(String userName,String email)throws DaoException;
	
	public void checkUserByNameOrEmail(String userName,String email)throws DaoException;
	
	/**
	 * get user by activate code
	 * @param activateCode
	 * @return
	 * @throws DaoException
	 */
	public User getUserByActivateCode(String activateCode)throws DaoException;

}
